ia.SizePalette Class
Palette for size values.
Constructor
ia.SizePalette
(
-
minimumSize
-
maximumSize
Parameters:
-
minimumSize
NumberThe minimum size.
-
maximumSize
NumberThe maximum size.
Methods
getInterpolatedSizes
(
String
-
noSizes
Returns a list of sizes uniformly interpolated
Parameters:
-
noSizes
NumberThe number of sizes required.
Returns:
String:
An array of color values.
getSize
(
Number
-
f
Gets the size corresponding to the interpolation fraction.
If the useSqrRoot
flag is true, the square root
of the size value is returned.
Parameters:
-
f
NumberAn interpolation fraction as a value between 0 and 1.
Returns:
Number:
The size corresponding to the fraction.
Properties
maxSize
Number
The maximum size.
Default: 15
minSize
Number
The minimum size.
Default: 15
useSqrRoot
Boolean
Flag indicating if square root should be used.
Default: false